﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="BBS_Index" %>
<%@ Import Namespace="System.Data" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>论坛首页</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
	<link href="../CSS/css.CSS" type="text/css" rel="stylesheet" /> 
		
<script language="Javascript" type ="text/javascript" >
	function logout()
	{
		window.location.href="Loginout.aspx";
	}
</script>
<style type="text/css" >
<!--
 body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
  }
-->
</style>
	</head>
	<% 
  Response .ExpiresAbsolute=System.DateTime.Now. AddSeconds(-1);
  Response.Expires=0;
  Response.CacheControl = "no-cache";
%>
	<body style ="background-color :#ffffff; background-image :url('../images/hit_bg.gif');" >
<form id="form1" runat ="server" >
  <table >
    <tr>
      <td style ="height :5;"></td>
    </tr>
  </table>
  <table  align="center" cellpadding="0" cellspacing="0"   style="BORDER-COLLAPSE: collapse; width :98%;" >
  <tr>
    <td><b>当前位置：</b><asp:Label ID="Indicator" runat ="server" ForeColor ="#ff0000" ></asp:Label></td>
  </tr>
  </table>
  <table align="center" cellpadding="0" cellspacing="0"  class="logon" style="BORDER-COLLAPSE: collapse; width :98%;">
    <tr >
      <td  bgcolor="#ffffff" style ="height :25;" >
      共有会员<font color="red"><%=usernum%></font>位
      新注册会员：<font color="red"><%=newuser%></font>
      共有主题：<font color="red"><%=anum%></font>
      共回复：<font color="red"><%=renum%></font>
      </td>
    </tr>
    <tr > 
      <td height="20" colspan="2" bgcolor="#e2ebf5" align ="center" >
         <div align="center"> 
        <script language="Javascript" src="js/fader.js" type="text/javascript"></script>        
        <script language="Javascript" type="text/javascript">
         prefix="";
         arNews = ["欢迎光临绿色节能项目论坛","","本论坛为绿色节能项目服务，严禁恶意使用粗言秽语！",""]
        </script>     
      </div>
      <div id="elFader" style="VISIBILITY: hidden; POSITION: relative; HEIGHT: 16px"></div>
      </td>
    </tr>
   </table>
 
<table style ="width :98%;" align="center" cellpadding="0" cellspacing="0" >
 <tr>
  <td  style ="width :100%;" valign ="top">
 <asp:repeater id="parent" runat="server">
  <itemtemplate> 
   <table align="center" cellpadding="0" cellspacing="0"  style =" width :100%; background-color :#ffffff">
	  <tr style ="height :25;">
	    <td style ="width :100%;" valign="bottom" >&nbsp;&nbsp;<img id="imgIndicator" src ="images/Point01.gif" style ="width :13; height :13;" alt ="讨论组" />
	        &nbsp;<font color="#000000" ><b><%# DataBinder.Eval(Container.DataItem,"GroupName") %></b></font>&nbsp;&nbsp;<%# DataBinder.Eval(Container.DataItem, "Descr")%></td>
	  </tr>
	  <tr>
	    <td style =" height :1; background-color :#6595D6;"></td>
	  </tr>
	  <!-- start child repeater -->
          <asp:repeater id="child" DataSource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>' runat="server">
	        <itemtemplate>
              <tr> 
               <td style ="width :100%;" class="board">
                <table style ="width :100%;"  class="table" cellspacing="0" cellpadding="3" align="center">
                 <tr> 
                  <td style ="width :9%;" rowspan="2" align="center" class="boardstate"><img src="bbsmanage/headlog/<%#DataBinder.Eval(Container.DataItem,"[\"HeadLog\"]")%>" width="40" alt="<%#DataBinder.Eval(Container.DataItem,"[\"SectionName\"]")%>" /></td>
                  <td style ="width :91%;">
                    <table style ="width :100%; height :100%;"  cellpadding="2" cellspacing="0" align="center">
                     <tr> 
                      <td width="67%" ><font color="#000000">『<a href="Board.aspx?SectionID=<%#DataBinder.Eval(Container.DataItem,"[\"SectionID\"]")%>&SectionName=<%#DataBinder.Eval(Container.DataItem,"[\"SectionName\"]")%>">
                           <%#DataBinder.Eval(Container.DataItem,"[\"SectionName\"]")%></a>&nbsp;』</font></td>
                      <td width="23%" class ="leftline">主题：<%# MyCC .LeftCutStr ((DataBinder.Eval(Container.DataItem,"[\"Title\"]")).ToString(),9)%></td>
                     </tr>
                     <tr> 
                      <td rowspan="2" valign="top"><img src="images/readme.gif" width="5" height="9" alt ="" /><%#DataBinder.Eval(Container.DataItem,"[\"Descr\"]")%></td>
                      <td class ="leftline">作者：<%#DataBinder.Eval(Container.DataItem,"[\"Author\"]")%></td>
                     </tr> 
                     <tr>
                      <td class ="leftline">日期：<%#DataBinder.Eval(Container.DataItem,"[\"PulishTime\"]")%></td>
                     </tr>
                    </table>
                   </td>
                  </tr>
                  <tr> 
                   <td bgcolor="#E2EBF5" >
                    <table width="100%" border="0" cellspacing="0" cellpadding="1">
                     <tr> 
                      <td width="30%"><font color="#555555">版主：<%#DataBinder.Eval(Container.DataItem,"[\"Master\"]")%> </font></td>
                      <td width="25%"><font color="#555555">主题数：<%#DataBinder.Eval(Container.DataItem,"[\"SubjectNum\"]")%></font></td>
                      <td ><font color="#555555">回复数：<%#DataBinder.Eval(Container.DataItem,"[\"ReNum\"]")%></font></td>                    
                     </tr>
                    </table>
                   </td>
                  </tr>
                 </table>
                </td>
               </tr>
              </itemtemplate>
             </asp:repeater>
            </table>   
     <!-- end child repeater -->  
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td height="0"></td>
	</tr>
   </table>
 </itemtemplate>
</asp:repeater></td>
 </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0" bgcolor ="#ffffff">
	<tr>
		<td style ="width :100%;" valign="bottom" >&nbsp;&nbsp;<img id="img1" src ="images/Point02.gif" style ="width :13; height :13;" alt ="当前来访用户信息" />
		&nbsp;当前用户信息
		&nbsp;&nbsp;IP：<%# Request.UserHostAddress %>&nbsp;&nbsp;操作系统：<%# Client.Agent(2)%>&nbsp;&nbsp;浏 览 器：<%# Client.Agent(1) %></td>
	</tr>
</table>
</form>	
</body>
</html>